<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      var comp = {
        color: '红',
        weight: '18kg',
        brand: 'Thinkpad',
        model: 'E495',
        use: function (skill) {
          alert('我在' + skill)
        },
      }
      comp.use('看电影')
      alert('颜色是' + comp.color)
    </script>
  </body>
</html>
